package com.faithbj.process.impl;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * User: xiongyuanwei
 * Date: 12-7-22
 * Time: 下午5:36
 */
public class ProcessEntityManagerHolder {

    private static final EntityManager em;

    static {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("com.faithbj.dana");
        em = emf.createEntityManager();
    }

    public static EntityManager getProcessEntityManager() {
        return em;
    }
}
